package com.book.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book.entity.TbBook;
import com.book.entity.TbType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * (TbBook)表数据库访问层
 *
 * @author makejava
 * @since 2024-11-07 19:53:26
 */
public interface TbBookDao extends BaseMapper<TbBook> {
    @Select("SELECT * FROM tb_book WHERE book_lei LIKE CONCAT('%', #{type}, '%');")
    List<TbBook> typeBook(String type);
}

